271e03cc5e1fcaaff775558bda300e7f1ab3b906,src/tap/formatter/VOTableFormat.java,VOTableFormat,getValidColMeta,#DBColumn#TAPColumn#,464
Before Change
protected static final TAPColumn getValidColMeta(final DBColumn typeFromQuery, final TAPColumn typeFromResult){
if (typeFromQuery != null && typeFromQuery instanceof TAPColumn){
TAPColumn colMeta = (TAPColumn)typeFromQuery;
if (colMeta.getDatatype().type == DBDatatype.UNKNOWN && typeFromResult != null && typeFromResult.getDatatype().type != DBDatatype.UNKNOWN)
colMeta.setDatatype(typeFromResult.getDatatype());
return colMeta;
}else if (typeFromResult != null){
After Change
protected static final TAPColumn getValidColMeta(final DBColumn typeFromQuery, final TAPColumn typeFromResult){
if (typeFromQuery != null && typeFromQuery instanceof TAPColumn){
TAPColumn colMeta = (TAPColumn)typeFromQuery;
if (colMeta.getDatatype().isUnknown() && typeFromResult != null && !typeFromResult.getDatatype().isUnknown())
colMeta.setDatatype(typeFromResult.getDatatype());
return colMeta;
}else if (typeFromResult != null){